package com.ald.crossex.dto;

import java.util.List;

/**
 * Created by lishijiong on 15/1/29.
 */
public class JqSubGridResponse extends BaseResponse{

    public static final String JQGRID_STATUS_SUCCESS = "success";
    public static final String JQGRID_STATUS_ERROR = "error";

    /**
     * json中代表实际模型数据的入口
     */
    private List rows;


    /**
     * json中代表当前页码的数据
     */
    private int page;

    /**
     * json中代表页码总数的数据
     */
    private int total;

    /**
     * json中代表数据行总数的数据
     */
    private int records;

    /**
     * 如果设为false，则jqGrid在解析json时，会根据name来搜索对应的数据元素（即可以json中元素可以不按顺序）；
     * 而所使用的name是来自于colModel中的name设定。
     */
    private boolean repeatitems;


    private String cell;

    private String id;


    private String userdata;

    private String status;

    public JqSubGridResponse() {
        super();
    }

    public JqSubGridResponse(String status) {
        this.status = status;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getRecords() {
        return records;
    }

    public void setRecords(int records) {
        this.records = records;
    }

    public boolean isRepeatitems() {
        return repeatitems;
    }

    public void setRepeatitems(boolean repeatitems) {
        this.repeatitems = repeatitems;
    }

    public String getCell() {
        return cell;
    }

    public void setCell(String cell) {
        this.cell = cell;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserdata() {
        return userdata;
    }

    public void setUserdata(String userdata) {
        this.userdata = userdata;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
